package com.wzh.bargain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzh.common.utils.PageUtils;
import com.wzh.common.utils.Query;

import com.wzh.bargain.dao.BargainActivityDao;
import com.wzh.bargain.entity.BargainActivityEntity;
import com.wzh.bargain.service.BargainActivityService;


@Service("bargainActivityService")
public class BargainActivityServiceImpl extends ServiceImpl<BargainActivityDao, BargainActivityEntity> implements BargainActivityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BargainActivityEntity> page = this.page(
                new Query<BargainActivityEntity>().getPage(params),
                new QueryWrapper<BargainActivityEntity>()
        );

        return new PageUtils(page);
    }

}